'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  // 重庆国科
  // 用户案例
  // 学校详情

  router.get('/api/getWYLuser1', controller.user1.index);
  router.post('/api/addWYLuser1', controller.user1.create); // 创建
  router.delete('/api/delWYLuser1/:id', controller.user1.destroy); // 删除
  router.put('/api/upWYLuser1/:id', controller.user1.update);
  router.get('/api/getWYLuser12/:id', controller.user1.show); // 查找
  router.get('/api/getWYLuser123/:age', controller.user1.index0); // 查找


};
